package com.zmj.mapper;

import com.zmj.entity.Article;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArticleMapper {
    @Insert("insert into article(content,tile) values(#{articleContent},#{articleTitle})")
    int create(@Param("article") Article article);

    @Select("select * from article")
    List<Article> getArticle();
}
